<template>
  <div class="visual-map-option">
    <el-collapse-item title="visualMap">
      <el-form-item label="生效">
        <el-switch  v-model="data.able"/>
      </el-form-item>
      <el-form-item label="显示">
        <el-switch v-model="data.show"/>
      </el-form-item>
      <el-form-item label="颜色">
        <tm-colors v-model="data.color"/>
      </el-form-item>
      <tm-group label="值域">
        <el-form-item label="最小值">
          <el-input-number v-model="data.min"/>
        </el-form-item>
        <el-form-item label="最大值">
          <el-input-number v-model="data.max"/>
        </el-form-item>
      </tm-group>
    </el-collapse-item>
  </div>
</template>

<script>
import tmColors from "@/package/components/tm-colors";

export default {
  name: 'visual-map-option',
  cnName: 'visual-map-option',
  components: {
    tmColors
  },
  props: {
    data: Object
  },
  data() {
    return {}
  },
  methods: {}
}
</script>

